<?php 
//wyznaczenie linka do sortowania (w razie braku pusty string)
$sortLink = '';
if ($this->sortColumn != null)
{
	$sortLink = '/sort/'.$this->sortColumn;	
}
?>

<div class="googleAdImage">
<script type="text/javascript"><!--
google_ad_client = "pub-7879655031679853";
/* baner1 728x90 */
google_ad_slot = "4918143532";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

<div class="couponsBlock">
 <div class="couponsBanner">
  <table class="fullW fullH">
   <tr>
    <td class="couponsBannerImage">
     <img src="<?php echo $this->baseUrl.'/public/images/arrow_o2o.png'; ?>" alt="" width="31px" height="24px"/>
    </td>
    <td class="couponsBannerTitle">
     Kupony
    </td>
    <td class="couponsBannerSubMenu">
	 <table class="fullH couponsBannerSubMenu" align="right">
	  <tr>
	   <td>&nbsp;</td>
	   <td class="submenuItem">
	    <img src="<?php echo $this->baseUrl.'/public/images/arrow_green_orange.jpg'; ?>" alt="" width="11px" height="7px"/>
	    <a class="submenu-link" href="<?php echo $this->baseUrl.'/Coupons/index/category/0'; ?>" title="Zobacz wszystkie kupony">
		 Wszystkie
		</a>
	   </td>
	   <td class="submenuItem">
	    <img src="<?php echo $this->baseUrl.'/public/images/arrow_green_orange.jpg'; ?>" alt="" width="11px" height="7px"/>
	    <a class="submenu-link" href="<?php echo $this->baseUrl.'/Coupons/index/category/1'; ?>" title="Zobacz najnowsze kupony">
		 Dzisiejsze
		</a>
	   </td>
	   <td class="submenuItem">
	    <img src="<?php echo $this->baseUrl.'/public/images/arrow_green_orange.jpg'; ?>" alt="" width="11px" height="7px"/>
	    <a class="submenu-link" href="<?php echo $this->baseUrl.'/Coupons/index/category/2'; ?>" title="Zobacz wygasające kupony">	
		 Wygasające
		</a>
	   </td>
	   <td class="submenuItem">
	    <img src="<?php echo $this->baseUrl.'/public/images/arrow_green_orange.jpg'; ?>" alt="" width="11px" height="7px"/>
	    <a class="submenu-link" href="<?php echo $this->baseUrl.'/Coupons/index/category/3'; ?>" title="Zobacz kupony od A do C">
		 # & A-C
		</a>
	   </td>
	   <td class="submenuItem">
	    <img src="<?php echo $this->baseUrl.'/public/images/arrow_green_orange.jpg'; ?>" alt="" width="11px" height="7px"/>
	    <a class="submenu-link" href="<?php echo $this->baseUrl.'/Coupons/index/category/4'; ?>" title="Zobacz kupony od D do G">
		 D-G
		</a>
	   </td>
	   <td class="submenuItem">
	    <img src="<?php echo $this->baseUrl.'/public/images/arrow_green_orange.jpg'; ?>" alt="" width="11px" height="7px"/>
	    <a class="submenu-link" href="<?php echo $this->baseUrl.'/Coupons/index/category/5'; ?>" title="Zobacz kupony od H do Ł">
		 H-Ł
		</a>
	   </td>
	   <td class="submenuItem">
	    <img src="<?php echo $this->baseUrl.'/public/images/arrow_green_orange.jpg'; ?>" alt="" width="11px" height="7px"/>
	    <a class="submenu-link" href="<?php echo $this->baseUrl.'/Coupons/index/category/6'; ?>" title="Zobacz kupony od M do R">
		 M-R
		</a>
	   </td>
	   <td class="submenuItem">
		<img src="<?php echo $this->baseUrl.'/public/images/arrow_green_orange.jpg'; ?>" alt="" width="11px" height="7px"/>
		<a class="submenu-link" href="<?php echo $this->baseUrl.'/Coupons/index/category/7'; ?>" title="Zobacz kupony od S do Ź">
		 S-Ź
		</a>
	   </td>
	   <td>&nbsp;</td>
	  </tr>
	 </table>
    </td>        
   </tr>
  </table>
 </div>
 <div class="couponsData">
 <?php 
  $messageText = 'Ilość kuponów w kategorii <b>'.$this->categories[($this->category == null ? 0 : $this->category)]['text'].'</b>: ';
  echo $this->couponGrid($this->coupons, $this->baseUrl, '/Coupons/index', $this->categories, $this->category, $messageText); 
 ?>
 </div>
 <div class="couponNavigator">
  <table class="fullW">
   <tr>
    <td class="popupCell">
     Dla firm: <a href="#popup" title="Oferta sponsorowanych kuponów dla firm." class="popupLink popupTrigger">Kupony sponsorowane</a>
    </td>
    <td class="navigatorCell">
     <?php echo $this->dataPaging($this->pageNo, $this->dataCount, $this->baseUrl, $this->sortColumn, $this->category, '/Coupons/index'); ?>
    </td>
   </tr>
  </table>
 </div> 
</div>
<div id="popup">
 <div class="popupContainer">
  <table class="fullW fullH">
   <tr>
    <td class="popupLogo">
     &nbsp;
    </td>
    <td class="popupHeader">
     Kupony sponsorowane
    </td>
   </tr>
   <tr>
    <td colspan="2" class="popupText">
     Z myślą o sklepach internetowych i stacjonarnych przygotowana została specjalna forma reklamy. Szczegóły oferty przedstawimy indywidualnie. W tym celu prosimy o przesłanie danych kontaktowych wraz z informacją o nazwie firmy, stronie internetowej oraz zwrotnym adresie emailowym na adres: 
    </td>
   </tr> 
   <tr>
    <td colspan="2" class="popupLinkCell">
     <a href="mailto: kontakt@profitmania.pl" title="Wyślij wiadomość do ProfitMania" class="popupLink">kontakt@profitmania.pl</a>
    </td>
   </tr>  
  </table>
 </div>
</div>